--==INCLUDE==--

--global singletons
Vector = require 'libs.hump.vector'
Timer = require 'libs.hump.timer'
Cam = require 'libs.hump.camera'            
EntitySystem = require 'libs.secs'
               require 'components'
               require 'factories'
               require 'types'
               
Gamestate = require 'libs.hump.gamestate'
            require('mainMenu')
            require('mainGame')
            require('pauseMenu')
            require('helpMenu')
anim8 = require('libs.anim8')
--Homemade helper file
require('libs.helper')

--==LOVE CALLBACKS==--
function love.load()
  love.graphics.setBackgroundColor(0,0,0,1)
  love.mouse.setVisible(false)
  --Allow fullscreen?, default width, default height, vsync?, anti-aliasing?, max width, max height
  --game:setup(false, 1280, 720, true, 0, 1920, 1080)
  
  --Lock resolution to 720 instead of allowing 1080
  love.graphics.setMode(1280, 720, false, true, 0)
  game.window = {width = 1280, height = 720}
  game.window.scale = {x = 0.66667, y = 0.66667}
  
  Gamestate.registerEvents()
  Gamestate.switch(mainMenu)
end

function love.update(dt)
  --EntitySystem.update(dt)
end

function love.draw()
  --EntitySystem.draw()
end

